package com.bigflexlib.x.mx.controls.sliderClasses.Slider
{
	import com.bigflexlib.utils.BasicTestBase;

	public class ScaleLinearizerHelperTest extends BasicTestBase
	{
		
		
		public function test_scale2signedNum( ):void
		{
			assertEquals( ScaleLinearizerHelper.scale2signedNum( 1 ), 		0 );
			assertEquals( ScaleLinearizerHelper.scale2signedNum( 2 ), 		1 );		
			assertEquals( ScaleLinearizerHelper.scale2signedNum( 0.5 ), 	-1 );	
		}
		
		
		public function test_signedNum2scale( ):void
		{
			assertEquals( ScaleLinearizerHelper.signedNum2scale( 0 ) , 1 );
			assertEquals( ScaleLinearizerHelper.signedNum2scale( 1 ) , 2 );
			assertEquals( ScaleLinearizerHelper.signedNum2scale( -1 ) , 0.5 );		
		}
		
		
	}
}